<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../print.css" type="text/css" media="print">
<meta content="Result,reflexunit.framework.models.Result,errorCount,errors,failureCount,failures,numAsserts,successCount,successes,testTimes,testsRun,wasSuccessful,addError,addFailure,addSuccess" name="keywords">
<title>reflexunit.framework.models.Result</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'Result - API Documentation';
				var baseRef = '../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">API Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../index-list.html')" href="../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../index.html?reflexunit/framework/models/Result.html&amp;reflexunit/framework/models/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;Result</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class Result"); titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">reflexunit.framework.models</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class Result</td>
</tr>
</table>
<p></p>
  Used to collect and describe the results of running a test.
  In most cases, a <code>Result</code> object should only be used (ie. run) once and then discared.
  
  <p>The test framework distinguishes between failures and errors.
  A failure is anticipated and checked for with assertions.
  Errors are unanticipated problems like an RangeError.</p>
  <p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#errorCount">errorCount</a> : int<div class="summaryTableDescription">[read-only]
   Gets the number of detected errors.</div>
</td><td class="summaryTableOwnerCol">Result</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#errors">errors</a> : Array<div class="summaryTableDescription">[read-only]
   Array of test <code>Failure</code> objects.</div>
</td><td class="summaryTableOwnerCol">Result</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#failureCount">failureCount</a> : int<div class="summaryTableDescription">[read-only]
   Gets the number of detected failures.</div>
</td><td class="summaryTableOwnerCol">Result</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#failures">failures</a> : Array<div class="summaryTableDescription">[read-only]
   Array of test <code>Failure</code> objects.</div>
</td><td class="summaryTableOwnerCol">Result</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#numAsserts">numAsserts</a> : int<div class="summaryTableDescription">[read-only]
   Total number of assertions made by all test methods run so far.</div>
</td><td class="summaryTableOwnerCol">Result</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#successCount">successCount</a> : int<div class="summaryTableDescription">[read-only]
   Gets the number of detected successful tests.</div>
</td><td class="summaryTableOwnerCol">Result</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#successes">successes</a> : Array<div class="summaryTableDescription">[read-only]
   Array of test <code>Success</code> objects.</div>
</td><td class="summaryTableOwnerCol">Result</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#testsRun">testsRun</a> : int<div class="summaryTableDescription">
   Number of test instances that were run and are described by this result.</div>
</td><td class="summaryTableOwnerCol">Result</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#testTimes">testTimes</a> : int<div class="summaryTableDescription">
   Total execution time for all test instances that were run and are described by this result.</div>
</td><td class="summaryTableOwnerCol">Result</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#wasSuccessful">wasSuccessful</a> : Boolean<div class="summaryTableDescription">[read-only]
   Returns whether the entire test was successful or not.</div>
</td><td class="summaryTableOwnerCol">Result</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#Result()">Result</a>()</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">Result</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#addError()">addError</a>(methodModel:<a href="../../introspection/models/MethodModel.html">MethodModel</a>, error:Error, numAsserts:int, time:int):<a href="../statuses/IStatus.html">IStatus</a>
</div>
<div class="summaryTableDescription">
   Adds an error to the list of errors.</div>
</td><td class="summaryTableOwnerCol">Result</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#addFailure()">addFailure</a>(methodModel:<a href="../../introspection/models/MethodModel.html">MethodModel</a>, error:<a href="../errors/AssertFailedError.html">AssertFailedError</a>, numAsserts:int, time:int):<a href="../statuses/IStatus.html">IStatus</a>
</div>
<div class="summaryTableDescription">
   Adds a failure to the list of failures.</div>
</td><td class="summaryTableOwnerCol">Result</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#addSuccess()">addSuccess</a>(methodModel:<a href="../../introspection/models/MethodModel.html">MethodModel</a>, numAsserts:int, time:int):<a href="../statuses/IStatus.html">IStatus</a>
</div>
<div class="summaryTableDescription">
   Adds a failure to the list of failures.</div>
</td><td class="summaryTableOwnerCol">Result</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="errorCount"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">errorCount</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>errorCount:int</code>&nbsp;&nbsp;[read-only]<p>
   Gets the number of detected errors.
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get errorCount():int</code>
<br>
</div>
<a name="errors"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">errors</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>errors:Array</code>&nbsp;&nbsp;[read-only]<p>
   Array of test <code>Failure</code> objects.
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get errors():Array</code>
<br>
</div>
<a name="failureCount"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">failureCount</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>failureCount:int</code>&nbsp;&nbsp;[read-only]<p>
   Gets the number of detected failures.
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get failureCount():int</code>
<br>
</div>
<a name="failures"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">failures</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>failures:Array</code>&nbsp;&nbsp;[read-only]<p>
   Array of test <code>Failure</code> objects.
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get failures():Array</code>
<br>
</div>
<a name="numAsserts"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">numAsserts</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>numAsserts:int</code>&nbsp;&nbsp;[read-only]<p>
   Total number of assertions made by all test methods run so far.
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get numAsserts():int</code>
<br>
</div>
<a name="successCount"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">successCount</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>successCount:int</code>&nbsp;&nbsp;[read-only]<p>
   Gets the number of detected successful tests.
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get successCount():int</code>
<br>
</div>
<a name="successes"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">successes</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>successes:Array</code>&nbsp;&nbsp;[read-only]<p>
   Array of test <code>Success</code> objects.
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get successes():Array</code>
<br>
</div>
<a name="testsRun"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">testsRun</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>testsRun:int</code>&nbsp;&nbsp;[read-write]<p>
   Number of test instances that were run and are described by this result.
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get testsRun():int</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set testsRun(value:int):void</code>
<br>
</div>
<a name="testTimes"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">testTimes</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>testTimes:int</code>&nbsp;&nbsp;[read-write]<p>
   Total execution time for all test instances that were run and are described by this result.
   
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get testTimes():int</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set testTimes(value:int):void</code>
<br>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../statuses/IStatus.html#time" target="">reflexunit.framework.statuses.IStatus.time</a>
</div>
</div>
<a name="wasSuccessful"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">wasSuccessful</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>wasSuccessful:Boolean</code>&nbsp;&nbsp;[read-only]<p>
   Returns whether the entire test was successful or not.
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get wasSuccessful():Boolean</code>
<br>
</div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="Result()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">Result</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function Result()</code>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="addError()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">addError</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public function addError(methodModel:<a href="../../introspection/models/MethodModel.html">MethodModel</a>, error:Error, numAsserts:int, time:int):<a href="../statuses/IStatus.html">IStatus</a></code><p>
   Adds an error to the list of errors.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">methodModel</span>:<a href="../../introspection/models/MethodModel.html">MethodModel</a></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">error</span>:Error</code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">numAsserts</span>:int</code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">time</span>:int</code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../statuses/IStatus.html">IStatus</a></code></td>
</tr>
</table>
</div>
<a name="addFailure()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">addFailure</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function addFailure(methodModel:<a href="../../introspection/models/MethodModel.html">MethodModel</a>, error:<a href="../errors/AssertFailedError.html">AssertFailedError</a>, numAsserts:int, time:int):<a href="../statuses/IStatus.html">IStatus</a></code><p>
   Adds a failure to the list of failures.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">methodModel</span>:<a href="../../introspection/models/MethodModel.html">MethodModel</a></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">error</span>:<a href="../errors/AssertFailedError.html">AssertFailedError</a></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">numAsserts</span>:int</code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">time</span>:int</code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../statuses/IStatus.html">IStatus</a></code></td>
</tr>
</table>
</div>
<a name="addSuccess()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">addSuccess</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function addSuccess(methodModel:<a href="../../introspection/models/MethodModel.html">MethodModel</a>, numAsserts:int, time:int):<a href="../statuses/IStatus.html">IStatus</a></code><p>
   Adds a failure to the list of failures.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">methodModel</span>:<a href="../../introspection/models/MethodModel.html">MethodModel</a></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">numAsserts</span>:int</code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">time</span>:int</code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../statuses/IStatus.html">IStatus</a></code></td>
</tr>
</table>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
